package com.youlai.boot.modules.policy.converter;

import com.youlai.boot.modules.policy.model.Policy;
import com.youlai.boot.modules.policy.model.PolicyDetailVO;
import com.youlai.boot.modules.policy.model.PolicyForm;
import com.youlai.boot.modules.policy.model.PolicyVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface PolicyConverter {
    PolicyVO toVO(Policy policy);

    PolicyDetailVO toDetailVo(Policy policy);

    Policy toEntity(PolicyForm form);
}